home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
u_man
/
cat3
/
Tk
/
after.z
/
after
Wrap
Text File
|
1998-10-30
|
5KB
|
133 lines
aaaafffftttteeeerrrr((((3333TTTTkkkk)))) aaaafffftttteeeerrrr((((3333TTTTkkkk))))
NNNNAAAAMMMMEEEE
after - Execute a command after a time delay
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
aaaafffftttteeeerrrr _m_s
aaaafffftttteeeerrrr _m_s ?_s_c_r_i_p_t _s_c_r_i_p_t _s_c_r_i_p_t ...?
aaaafffftttteeeerrrr ccccaaaannnncccceeeellll _i_d |
aaaafffftttteeeerrrr ccccaaaannnncccceeeellll _s_c_r_i_p_t _s_c_r_i_p_t _s_c_r_i_p_t ... |
aaaafffftttteeeerrrr iiiiddddlllleeee ?_s_c_r_i_p_t _s_c_r_i_p_t _s_c_r_i_p_t ...?
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
This command is used to delay execution of the program or to execute a
command in background after a delay. It has several forms, depending on
the first argument to the command:
aaaafffftttteeeerrrr _m_s
_M_s must be an integer giving a time in milliseconds. The command
sleeps for _m_s milliseconds and then returns. While the command is
sleeping the application does not respond to X events or any other
events.
aaaafffftttteeeerrrr _m_s ?_s_c_r_i_p_t _s_c_r_i_p_t _s_c_r_i_p_t ...?
In this form the command returns immediately, but it arranges for a
Tcl command to be executed _m_s milliseconds later as a background
event handler. The delayed command is formed by concatenating all
the _s_c_r_i_p_t arguments in the same fashion as the ccccoooonnnnccccaaaatttt command. The
command will be executed at global level (outside the context of any
Tcl procedure). If an error occurs while executing the delayed
command then the ttttkkkkeeeerrrrrrrroooorrrr mechanism is used to report the error. The
aaaafffftttteeeerrrr command returns an identifier that can be used to cancel the
delayed command using aaaafffftttteeeerrrr ccccaaaannnncccceeeellll.
aaaafffftttteeeerrrr ccccaaaannnncccceeeellll _i_d
Cancels the execution of a delayed command that was previously |
scheduled. _I_d indicates which command should be canceled; it must |
have been the return value from a previous aaaafffftttteeeerrrr command. If the |
command given by _i_d has already been executed then the aaaafffftttteeeerrrr ccccaaaannnncccceeeellll |
command has no effect.
aaaafffftttteeeerrrr ccccaaaannnncccceeeellll _s_c_r_i_p_t _s_c_r_i_p_t ...
This command also cancels the execution of a delayed command. The |
_s_c_r_i_p_t arguments are concatenated together with space separators |
(just as in the ccccoooonnnnccccaaaatttt command). If there is a pending command that|
matches the string, it is cancelled and will never be executed; if |
no such command is currently pending then the aaaafffftttteeeerrrr ccccaaaannnncccceeeellll command |
has no effect.
aaaafffftttteeeerrrr iiiiddddlllleeee _s_c_r_i_p_t ?_s_c_r_i_p_t _s_c_r_i_p_t ...?
Concatenates the _s_c_r_i_p_t arguments together with space separators |
(just as in the ccccoooonnnnccccaaaatttt command), and arranges for the resulting |
script to be evaluated later as an idle handler (the script runs the|
PPPPaaaaggggeeee 1111
aaaafffftttteeeerrrr((((3333TTTTkkkk)))) aaaafffftttteeeerrrr((((3333TTTTkkkk))))
next time the Tk event loop is entered and there are no events to |
process). The command returns an identifier that can be used to |
cancel the delayed command using aaaafffftttteeeerrrr ccccaaaannnncccceeeellll. If an error occurs |
while executing the script then the ttttkkkkeeeerrrrrrrroooorrrr mechanism is used to |
report the error.
SSSSEEEEEEEE AAAALLLLSSSSOOOO
tkerror
KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
cancel, delay, sleep, time
PPPPaaaaggggeeee 2222